<?php defined('IN_ADMIN') or exit('Access Denied!'); ?>
<div class="subnav">
  <div class="content-menu ib-a blue line-x">
    <a href='javascript:;' class="on"><em>宴会厅管理</em></a> <span>|</span>
    <a href="/admin/hotel_hall/list/<?=$shop_id;?>"><em>刷新列表</em></a>
  <?php if($isadmin){ ?> <span>|</span><a href="#" onclick="show_dialog('add', '/admin/hotel_hall/create/<?=$shop_id;?>', '添加新宴会厅')"><em>添加新宴会厅</em></a><?php } ?>
  </div>
</div>
<form name="myform" action="/admin/hotel_hall/sortlist/<?=$shop_id;?>" method="post">
  <div class="pad_10">
    <div class="table-list">
      <table width="100%" cellspacing="0" >
        <thead>
          <tr>
            <th width="38">排序</th>
            <th width="30">Id</th>
            <th width="30">楼层</th>
            <th>宴会厅名称</th>
            <th align="left">层高（米）</th>
            <th align="left">容纳桌数</th>
            <th>管理操作</th>
          </tr>
        </thead>
        <tbody>
        <?php
        if(is_array($list) && count($list)){
          foreach($list as $item){
        ?>
          <tr>
            <td align="center"><input name="sorts[<?=$item['hall_id'];?>]" type="text" size="3" value="<?=$item['ordnum'];?>" class="input-text-c"></td>
            <td align="center"><?=$item['hall_id'];?></td>
            <td><?=i($item['floor']);?>F</td>
            <td><?=h($item['name']);?></td>
            <td><?=h($item['height']);?></td>
            <td><?=h($item['table']);?></td>
            <td align="center">
                <a href="#" onclick="show_dialog('edit', '/admin/hotel_hall/modify/<?=$item['shop_id'];?>-<?=$item['hall_id'];?>', '编辑宴会厅');">编辑</a>
                 <span>|</span>
                <a href="/admin/hotel_menu/delete/<?=$item['shop_id'];?>?hall_id=<?=$item['hall_id'];?>" onclick="return confirm('确定要删除该项目？')">删除</a>
            </td>
          </tr>
        <?php
            }
          }else{
        ?>
            <tr><td colspan="7" height="50" align="center">暂无数据</td></tr>
        <?php } ?>
         </tbody>
      </table>
      <?php if(is_array($list) && count($list)){ ?>
      <div class="btn">
        <input type="submit" class="button" name="dosubmit" value="排序" />
      </div>
      <?php } ?>
    </div>
  </div>
</form>
